<template>
  <div class="section-card">
    <div class="section-header">
      <div class="section-title">
        <h3>{{ title }}</h3>
        <span class="subtitle">{{ subtitle }}</span>
      </div>
      <div class="section-actions">
        <slot name="actions"></slot>
      </div>
    </div>
    <div class="section-content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: String,
  subtitle: String
})
</script>

<style scoped>
.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.section-title h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.subtitle {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  margin-left: 8px;
}

.section-actions {
  display: flex;
  align-items: center;
}
</style>